package com.homework;

import com.homework.service.UserService;

public class ClientBoostrap {

    public static void main(String[] args) throws InterruptedException {
        RpcConsumer consumer = new RpcConsumer();

        UserService userService = (UserService)consumer.createProxy(UserService.class);
        while (true) {
            System.out.println("get server return = " + userService.sayHello("ok?"));
            Thread.sleep(1000);
        }
    }
}
